package la.bbs558.service;

import com.baomidou.mybatisplus.extension.service.IService;
import la.bbs558.entity.UserMessage;
import la.bbs558.entity.params.SysMessagePage;
import la.bbs558.entity.params.UserMessagePage;

import java.util.Map;

/**
 * 用户消息(UserMessage)表服务接口
 *
 * @author weihanmin
 * @since 2023-12-17 16:08:08
 */
public interface UserMessageService extends IService<UserMessage> {
    void sysList(SysMessagePage page);

    void userMessage(UserMessagePage page);

    Integer messageCount();

    Integer messageCount(long userId);

    void websocketUpdateMsgCount(Long toUser);

    Map<String, Object> messageStatistics(Long toUser);
}

